class ProjectsController < ApplicationController
  layout 'data_manip'
  make_resourceful do
    actions :all
    
    before :index do
      @current_object ||= Project.new
    end
    
    before :create do
      exemplar = current_object.exemplars.build(params[:exemplar])
    end
    
    response_for :index do |format|
      format.html { render :action => 'index', :layout => 'centered' }
    end
    
    response_for :new do
      redirect_to projects_path
    end
  end
end
